﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SpeedTestServerSetup
{
    public delegate void StateChangeEvent(bool isReady);
    
	public partial class WizardPage : UserControl
	{
        public virtual event StateChangeEvent ReadyStateChanged;

        public WizardPage()
		{
			InitializeComponent();
		}

        public virtual void LeavePage(WizardEvents e) { }
        public virtual void EnterPage(WizardEvents e) { }
	}

    public class WizardEvents
    {
        private bool _cancel = false;
        private string _errMessage = String.Empty;
		private WizardDirection _direction = WizardDirection.Unknown;

        public bool Cancel
        {
            get
            {
                return _cancel;
            }
            set
            {
                _cancel = value;
            }
        }

        public string ErrorMessage
        {
            get
            {
                return _errMessage;
            }
            set
            {
                _errMessage = value;
            }
        }

		public WizardDirection Direction
		{
			get
			{
				return _direction;
			}
			set
			{
				_direction = value;
			}
		}
    }
}
